package com.xhwl.centiotdata.pojo.constant;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @Author： lianghz
 * @Description：
 * @Date 2021/09/06/ 13:40
 */
public final class DaHuaConstant {

    /**
     * 门禁事件类型
     * 56:正常关门
     * 57:正常开门
     */
    public static final List<Integer> DOOR_EVENT_LIST = Collections.unmodifiableList(Arrays.asList(56, 57));

    /**
     * api
     */
    public static final String PUBLIC_KEY_URL = "/WPMS/getPublicKey";

    public static final String LOGIN_URL = "/WPMS/login";

    public static final String PEDESTRIAN_RECORD_URL = "/CardSolution/card/accessControl/swingCardRecord/bycondition/combined";

    public static final String ADMIN_REST_URL = "/admin/rest/api";

    public static final String OPEN_DOOR = "/CardSolution/card/accessControl/channelControl/openDoor";

    /**
     * param
     */
    public static final String ADMIN_001_006 = "admin_001_006";

    /**
     * 创建人员
     */
    public static final String CREATE_USER_URL = "/CardSolution/card/person";

    /**
     * 创建身份
     */
    public static final String CREATE_IDENTITY_URL = "/CardSolution/card/person/personidentity";

    public static final String QUERY_IDENTITY_URL = "/CardSolution/card/person/personidentity";

    public static final String IDENTITY_KEY = "iot-data:dahua:%1$s.indentity";

    public static final int IDENTITY_TIME = 24*60*60;


    /**
     * 查询人员列表信息
     */
    public static final String QUERY_USER_URL = "/CardSolution/card/person/bycondition/combined";

    /**
     * 获取二维码
     */
    public static final String QR_CODE_URL = "/CardSolution/card/card/qrCode";

    /**
     * 访客预约
     */
    public static final String VISITOR_BOOK_URL = "/CardSolution/card/visitor/appointment";

    /**
     * 访客出入记录查询
     */
    public static final String QUERY_VISITOR_RECORD_URL = "/CardSolution/card/accessControl/swingCardRecord/visitor/bycondition/combined";

}
